package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.pojo.pe.pe_permission;
import lombok.Data;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface PermissionMapper extends BaseMapper<pe_permission> {

    @Select("select pid from pe_permission  where type=1 GROUP BY pid  ")
    List<pe_permission> findMenus();
}
